\d $
set @n=1000;
create function get_many(_many varchar(100))
retruns varchar(100) charset utf8
reads sql data

begin
  if n>1000
  return select money from user where money>n;
  else
  retrun select money from user where money<n;
  end if;
end;
$
\d;